package staticmethod;

public class Student
{
    private double score;
    //静态方法
    public static void printhelloworld()
    {
        System.out.println("hello world");
        System.out.println("hello world");
        System.out.println("hello world");
    }

    public void printpass()
    {
        if(score >= 60)
        {
            System.out.println("通过");
        }
        else
        {
            System.out.println("没通过");
        }
    }
    public void setScore(double score)
    {
        this.score = score;
    }
}
